export default {
  props: {
    dataList: {
      type: Array,
      default: () => []
    },
    configOptions: {
      type: Object,
      default: {
        title: 'content',
        id: 'id',
        key: 'id'
      }
    }
  },
  watch: {
    dataList: {
      handler() {
        this.setConfigOptions();
      },
      deep: true,
      immediate: true
    }
  }
}